home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
comm
/
mail
/
FTPMAL.lha
/
FTPMAL
/
FTPMALGUI.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-08-22
|
1KB
|
46 lines
/* Part of FTPMAL.rexx */
address FTPMALGUI
window ID W TITLE '"Select files to be retrieved"' PORT FTPMALGUI COMMAND "quit"
group
list ID A HELP """All files in Aminet list\n\nDoubleclick on entry to\nremove it from list"""
'button ID B1 COMMAND Rexx/mlist HELP "Create message" LABEL Submit'
/*button title All
button title None
button title Quit*/
list ID B HELP """Files which will be downloaded\n\nDoubleclick on entry to\nremove it from list"""
endgroup
endwindow
i=0
if open(Tmp,"t:ftpmal.tmp",'r') then do
do until EOF(Tmp)
L=readln(Tmp)
if substr(L,19,1,"|")=" " & substr(L,30,1,"|")=" " & index(L,"/")>21 & index(L,"/")<26 then do /* Check is line part of Aminet list... */
list ID A POS i insert string L
i=i+1
end
end
call close(Tmp)
end
else do
address YAM
'request "Can not open 'TempFile'" "_Ok"'
exit
end
callhook ID A PRESS PORT INLINE,
COMMAND """options results;
address FTPMALGUI;
line = '%s';
'list ID B INSERT STRING' line;
'list ID A REMOVE STRING' line;"""
callhook ID B PRESS PORT INLINE,
COMMAND """options results;
address FTPMALGUI;
line = '%s';
'list ID A INSERT STRING' line;
'list ID B REMOVE STRING' line;"""